﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using Volo.Abp.Domain.Entities;

namespace OrderTrace
{
    public class Tpopf002: Entity<Guid>
    {

        /// <summary>
        /// 订单号
        /// </summary>

        [StringLength(100)]
        [Column("ORDER_NO")]
        public virtual String OrderNo { get; set; }

        /// <summary>
        /// 制程号
        /// </summary>

        [Column("WHOLE_BACKLOG_NO")]
        public virtual Int32 WholeBacklogNo { get; set; }

        /// <summary>
        /// 全程工序途径码
        /// </summary>

        [StringLength(50)]
        [Column("WHOLE_BACKLOG")]
        public virtual String WholeBacklog { get; set; }

        

        /// <summary>
        /// 全程工序顺序号
        /// </summary>

        [Column("WHOLE_BACKLOG_SEQ")]
        public virtual Int32 WholeBacklogSeq { get; set; }

        /// <summary>
        /// 全程工序代码
        /// </summary>

        [StringLength(2)]
        [Column("WHOLE_BACKLOG_CODE")]
        public virtual String WholeBacklogCode { get; set; }

        /// <summary>
        /// 主副制程标记
        /// </summary>

        [StringLength(1)]
        [Column("BACKLOG_FLAG")]
        public virtual String BacklogFlag { get; set; }

        /// <summary>
        /// 在库重量
        /// </summary>

        [Column("STOCK_WT")]
        public virtual Decimal StockWt { get; set; }

        /// <summary>
        /// 在库件数
        /// </summary>

        [Column("STOCK_NUM")]
        public virtual Int32 StockNum { get; set; }

        /// <summary>
        /// 在库根数
        /// </summary>

        [Column("STOCK_TUBE")]
        public virtual Int32 StockTube { get; set; }

        /// <summary>
        /// 在库长度
        /// </summary>

        [Column("STOCK_LEN")]
        public virtual Int32 StockLen { get; set; }

        /// <summary>
        /// 计划重量
        /// </summary>

        [Column("PLAN_WT")]
        public virtual Decimal PlanWt { get; set; }

        /// <summary>
        /// 计划个数
        /// </summary>

        [Column("PLAN_NUM")]
        public virtual Int32 PlanNum { get; set; }

        /// <summary>
        /// 计划根数
        /// </summary>

        [Column("PLAN_TUBE")]
        public virtual Int32 PlanTube { get; set; }

        /// <summary>
        /// 计划长度
        /// </summary>

        [Column("PLAN_LEN")]
        public virtual Int32 PlanLen { get; set; }

        /// <summary>
        /// 通过重量
        /// </summary>

        [Column("PASS_WT")]
        public virtual Decimal PassWt { get; set; }

        /// <summary>
        /// 通过件数
        /// </summary>

        [Column("PASS_NUM")]
        public virtual Int32 PassNum { get; set; }

        /// <summary>
        /// 通过根数
        /// </summary>

        [Column("PASS_TUBE")]
        public virtual Int32 PassTube { get; set; }

        /// <summary>
        /// 通过长度
        /// </summary>

        [Column("PASS_LEN")]
        public virtual Int32 PassLen { get; set; }

        /// <summary>
        /// 差欠重量
        /// </summary>

        [Column("LACK_WT")]
        public virtual Decimal LackWt { get; set; }

        /// <summary>
        /// 差欠件数
        /// </summary>

        [Column("LACK_NUM")]
        public virtual Int32 LackNum { get; set; }

        /// <summary>
        /// 差欠根数
        /// </summary>

        [Column("LACK_TUBE")]
        public virtual Int32 LackTube { get; set; }

        /// <summary>
        /// 差欠长度
        /// </summary>

        [Column("LACK_LEN")]
        public virtual Int32 LackLen { get; set; }

        /// <summary>
        /// 封锁重量
        /// </summary>

        [Column("HOLD_WT")]
        public virtual Decimal HoldWt { get; set; }

        /// <summary>
        /// 封锁件数
        /// </summary>

        [Column("HOLD_NUM")]
        public virtual Int32 HoldNum { get; set; }

        /// <summary>
        /// 转入重量
        /// </summary>

        [Column("MOVE_IN_WT")]
        public virtual Decimal MoveInWt { get; set; }

        /// <summary>
        /// 转入件数
        /// </summary>

        [Column("MOVE_IN_NUM")]
        public virtual Int32 MoveInNum { get; set; }

        /// <summary>
        /// 转入根数
        /// </summary>

        [Column("MOVE_IN_TUBE")]
        public virtual Int32 MoveInTube { get; set; }

        /// <summary>
        /// 转入长度
        /// </summary>

        [Column("MOVE_IN_LEN")]
        public virtual Int32 MoveInLen { get; set; }

        /// <summary>
        /// 转出重量
        /// </summary>

        [Column("MOVE_OUT_WT")]
        public virtual Decimal MoveOutWt { get; set; }

        /// <summary>
        /// 转出件数
        /// </summary>

        [Column("MOVE_OUT_NUM")]
        public virtual Int32 MoveOutNum { get; set; }

        /// <summary>
        /// 转出根数
        /// </summary>

        [Column("MOVE_OUT_TUBE")]
        public virtual Int32 MoveOutTube { get; set; }

        /// <summary>
        /// 转出长度
        /// </summary>

        [Column("MOVE_OUT_LEN")]
        public virtual Int32 MoveOutLen { get; set; }

        /// <summary>
        /// 计划开始日期
        /// </summary>

        [StringLength(8)]
        [Column("PLAN_START_DATE")]
        public virtual String PlanStartDate { get; set; }

        /// <summary>
        /// 计划结束日期
        /// </summary>

        [StringLength(8)]
        [Column("PLAN_END_DATE")]
        public virtual String PlanEndDate { get; set; }

        /// <summary>
        /// 最晚结束日期
        /// </summary>

        [StringLength(8)]
        [Column("LATEST_END_DATE")]
        public virtual String LatestEndDate { get; set; }

        /// <summary>
        /// 预测结束日期
        /// </summary>

        [StringLength(8)]
        [Column("FORE_END_DATE")]
        public virtual String ForeEndDate { get; set; }

        /// <summary>
        /// 实际结束日期
        /// </summary>

        [StringLength(8)]
        [Column("ACT_END_DATE")]
        public virtual String ActEndDate { get; set; }

        /// <summary>
        /// 工序投料系数
        /// </summary>

        [Column("BACKLOG_DEVO_RATE")]
        public virtual Decimal BacklogDevoRate { get; set; }

        /// <summary>
        /// 标准投料系数
        /// </summary>

        [Column("STD_DEVO_RATE")]
        public virtual Decimal StdDevoRate { get; set; }

        /// <summary>
        /// 特殊投料系数
        /// </summary>

        [Column("SPECIAL_DEVO_RATE")]
        public virtual Decimal SpecialDevoRate { get; set; }

        /// <summary>
        /// 成品系数
        /// </summary>

        [Column("PRODUCT_RATE")]
        public virtual Decimal ProductRate { get; set; }

        /// <summary>
        /// 有效作业率
        /// </summary>

        [Column("GOOD_RATE")]
        public virtual Decimal GoodRate { get; set; }

        /// <summary>
        /// 申请尾差
        /// </summary>

        [Column("APP_DIFF")]
        public virtual Decimal AppDiff { get; set; }

        /// <summary>
        /// 通过天数
        /// </summary>

        [Column("PASS_DAYS")]
        public virtual Int32 PassDays { get; set; }

     

        /// <summary>
        /// 工序类型代码
        /// </summary>

        [StringLength(4)]
        [Column("BACKLOG_TYPE_CODE")]
        public virtual String BacklogTypeCode { get; set; }

        /// <summary>
        /// 工序位代码
        /// </summary>

        [StringLength(4)]
        [Column("BACKLOG_POS_CODE")]
        public virtual String BacklogPosCode { get; set; }

        /// <summary>
        /// 转出重量_质量
        /// </summary>

        [Column("MOVE_OUT_WT_QM")]
        public virtual Decimal MoveOutWtQm { get; set; }

        /// <summary>
        /// 转出件数_质量
        /// </summary>

        [Column("MOVE_OUT_NUM_QM")]
        public virtual Int32 MoveOutNumQm { get; set; }

        /// <summary>
        /// 转出根数_质量
        /// </summary>

        [Column("MOVE_OUT_TUBE_QM")]
        public virtual Int32 MoveOutTubeQm { get; set; }

        /// <summary>
        /// 转出长度_质量
        /// </summary>

        [Column("MOVE_OUT_LEN_QM")]
        public virtual Int32 MoveOutLenQm { get; set; }

      

        /// <summary>
        /// 组别
        /// </summary>
        [StringLength(10)]
        [Column("GROUP_STYLE")]
        public virtual String GroupStyle { get; set; }
    }
}
